﻿/*
Commerce by Onex – eCommerce software platform (www.ecommerce.byonex.com)
Copyright (C) 2008-2010 by Onex Group

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 */
using System;
using System.Collections.Generic;
using System.Text;

namespace ShopModel
{
    /// <summary>
    /// Klasa przechowuje informacje na temat przesyłki.
    /// (Class stores information about the shipment.)
    /// </summary>
    public class ShipmentType
    {
        #region Variables

        private int _ShipmentID;
        private string _ShipmentName;
        private decimal _CountryShipmentPrice;
        private decimal _EUShipmentPrice;
        private decimal _WorldShipmentPrice;

        #endregion Variables

        #region Constructors

        public ShipmentType()
        {
        }

        public ShipmentType(int ShipmentID, string Name, decimal CountryShipmentPrice, decimal EUShipmentPrice, decimal WorldShipmentPrice)
        {
            _ShipmentID = ShipmentID;
            _ShipmentName = Name;
            _CountryShipmentPrice = CountryShipmentPrice;
            _EUShipmentPrice = EUShipmentPrice;
            _WorldShipmentPrice = WorldShipmentPrice;
        }

        #endregion Constructors

        #region Fields

        public int ShipmentID
        {
            get { return _ShipmentID; }
            set { _ShipmentID = value; }
        }

        public string ShipmentName
        {
            get { return _ShipmentName; }
            set { _ShipmentName = value; }
        }

        public decimal CountryShipmentPrice
        {
            get { return _CountryShipmentPrice; }
            set { _CountryShipmentPrice = value; }
        }

        public decimal EUShipmentPrice
        {
            get { return _EUShipmentPrice; }
            set { _EUShipmentPrice = value; }
        }

        public decimal WorldShipmentPrice
        {
            get { return _WorldShipmentPrice; }
            set { _WorldShipmentPrice = value; }
        }

        public bool IsActiveCountry
        {
            get { return _CountryShipmentPrice >= 0; }
        }

        public bool IsActiveUE
        {
            get { return _EUShipmentPrice >= 0; }
        }

        public bool IsActiveWorld
        {
            get { return _WorldShipmentPrice >= 0; }
        }

        #endregion Fields

    }
}
